
export default {
  'GET /api/list': function(req, res) {
    res.json({
      msg: '我是测试数据'
    })
  },
  // 1. 登陆接口
  'GET /api/login': function(req, res) {
    res.json({
      msg: 'sussess',
      token: '11xxxxx2222xxxxx4' // 接口身份
    })
  },
  // 2. 获取用户信息接口
  'GET /api/userInfo': function(req, res) {
    res.json({
      msg: 'success',
      routes: [
        {
          path: '/pms/pro',
          exact: true,
          component: '/pms/product/index'
        },
        {
          path: '/oms',
          exact: true,
          component: '/oms/index'
        },
        {
          path: '/sms',
          exact: true,
          component: '/sms/index'
        }
      ]
    })
  }
}
